package com.itheima.thread.api.demo08;

public class MyThreadDemo08_1 {

    public static void main(String[] args) {

        MyThread t1 = new MyThread();
        MyThread t2 = new MyThread();

        t1.setName("A");
        t1.setName("B");

        t1.setDaemon(true);
        t2.setDaemon(true);

        t1.start();
        t2.start();

        Thread.currentThread().setName("C");
        for (int i = 0; i < 5; i++) {
            System.out.println(Thread.currentThread().getName() + "," + i);
        }

    }
}
